package com.foolishbird.sdk.params.bean;

import android.text.TextUtils;



public enum WindowMessageType {

    NORMAL("normal"),

    USER("user"),

    INTRODUCTION("introduction"),

    CARD("card"),

    CUSTOMER("customer"),

    ACTIVITY("activity");

    private String value;

    WindowMessageType(String value) {
        this.value = value;
    }

    public static WindowMessageType valueOfEnum(String value) {
        if (TextUtils.equals(value, "normal")) {
            return NORMAL;
        } else if (TextUtils.equals(value, "user")) {
            return USER;
        } else if (TextUtils.equals(value, "introduction")) {
            return INTRODUCTION;
        } else if (TextUtils.equals(value, "card")) {
            return CARD;
        } else if (TextUtils.equals(value, "customer")) {
            return CUSTOMER;
        } else if (TextUtils.equals(value, "activity")) {
            return ACTIVITY;
        } else {
            return USER;
        }
    }

    public String getValue() {
        return value;
    }

}
